package com.glory.dgcpcpda.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.dgcpcpda.R;
import com.glory.dgcpcpda.entity.NitrCabinetEntity;

import java.util.List;

/**
 * FileName: PERecipeListAdapter
 * Author: XJH
 * Date: 2020/6/18 17:01
 * Description:
 * History:
 */
public class WForMaterialListAdapter extends BaseQuickAdapter<NitrCabinetEntity.NitrCabList, BaseViewHolder> {

    public WForMaterialListAdapter(@Nullable List<NitrCabinetEntity.NitrCabList> data) {
        super(R.layout.adapter_material, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, NitrCabinetEntity.NitrCabList item) {
        helper.setText(R.id.tvLocation,item.getLOCATORID());
        helper.setText(R.id.tvMainQTY,item.getMAINQTY());
    }
}
